package com.weixing.mall.provider.api.service;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.provider.api.fallback.PaySetFeignFallBack;
import com.weixing.mall.provider.api.model.vo.PaySetVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.ribbon.FeignRibbonClientAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/8/2 17:36
 * @Modified By:
 */
@FeignClient(value ="mall-provider-cms",configuration = FeignRibbonClientAutoConfiguration.class,fallback = PaySetFeignFallBack.class)
public interface PaySetFeign {

    @GetMapping(value = "/api/paySet/loadPaySet")
    Result<List<PaySetVo>> loadPaySet(@RequestParam(value = "channelCode") String channelCode);
}
